package com.bosssoft.hr.train.j2se.example.exception;

public enum ExceptionCode {

    ILLEGAL_ACCESS(100,"非法访问"),//非法访问
    COLUMN_NOT_EXIT(101,"数据库中列不存在"),//数据库中列不存在
    INVALID_PARAM(102,"参数不合理");//数据库中列不存在
    private int code;
    private String msg;


    ExceptionCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg(){
        return msg;
    }



}
